package com.zj.dmsproxy.annotation;

import com.zj.baseproxy.annotation.Scan;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * dms扫描
 *
 * @author arthur_zhou
 * @version 1.0
 * @date 2023/10/8 10:36
 */
@Documented
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Scan(beanCreateRuleBeanName = "dmsBeanCreateRule")
public @interface DmsScan {
    /**
     * bean名称
     * 默认就是首字母小写的接口名称
     *
     * @return bean名称
     */
    @AliasFor(annotation = Scan.class, attribute = "value")
    String value() default "";

    /**
     * @return 需要查询的表的信息名称 不区分大小写
     */
    String infoName();
}
